package com.atmilan.quartz.model.dto.jst;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

import lombok.Data;

/**
 * 聚水潭
 * @author daigb
 * @date:  2022-02-28 13:45
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class JstProductStockResDTO {
    /**
     * 状态码
     */
    @JsonProperty(value = "code")
    private Integer code;
    
    /**
     * msg
     */
    @JsonProperty(value = "msg")
    private String msg;
    
    /**
     * result
     */
    @JsonProperty(value = "data")
    private Result data;
    
    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class Result {
        
        @JsonProperty(value = "page_size")
        private Integer pageSize;
        
        @JsonProperty(value = "page_index")
        private Integer pageIndex;
        
        @JsonProperty(value = "data_count")
        private Integer dataCount;
        
        @JsonProperty(value = "page_count")
        private Integer pageCount;
        
        @JsonProperty(value = "has_next")
        private Boolean hasNext;
        
        @JsonProperty(value = "inventorys")
        private List<Inventory> inventorys;
        
    }
    
    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class Inventory {
        
        @JsonProperty(value = "i_id")
        private String iId;
        
        @JsonProperty(value = "purchase_qty")
        private String purchaseQty;
        
        @JsonProperty(value = "min_qty")
        private String minQty;
        
        @JsonProperty(value = "sku_id")
        private String skuId;
        
        @JsonProperty(value = "virtual_qty")
        private String virtualQty;
        
        @JsonProperty(value = "order_lock")
        private String orderLock;
        
        @JsonProperty(value = "max_qty")
        private String maxQty;
        
        @JsonProperty(value = "pick_lock")
        private String pickLock;
        
        @JsonProperty(value = "qty")
        private Integer qty;
        
        @JsonProperty(value = "modified")
        private String modified;
        
        @JsonProperty(value = "in_qty")
        private String inQty;
        
        @JsonProperty(value = "defective_qty")
        private String defectiveQty;
        
        @JsonProperty(value = "return_qty")
        private String returnQty;
        
    }
    
}
